package com.zwps.biz.dal.db.dao;

import com.zwps.biz.dal.db.object.RolePermissionApiDO;
import com.zwps.biz.api.model.vo.permission.api.SelectPermissionApiVO;
import com.zwps.common.mybatis.plus.InsertBatchMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色权限表 Mapper 接口
 * </p>
 *
 * @author HuangLei
 * @since 2023-05-09
 */
@Mapper
public interface RolePermissionApiDAO extends InsertBatchMapper<RolePermissionApiDO> {

    //批量添加
    int saveBatchRolePermissionApiIds(@Param("roleId") String roleId, @Param("addPermissionApiIds") Set<String> addPermissionApiIds);


    //批量删除
    int deleteBatchRolePermissionApiIds(@Param("roleId") String roleId, @Param("delPermissionApiIds") Set<String> delPermissionApiIds);

    List<SelectPermissionApiVO> selectBelongAuthorityRolePermission(@Param("roleId") String roleId);



}
